Part 1 Documentation [DOC]
	1. Addresses and Info
Part 2 Setup [SET]
	1. Items that will be used
Part 3 ASM [ASM]
	ovl_kaleido_scope (33)
		1. Free Inventory Movement
		2. Slot to Item Usability
Part 4 Tables [TBL]
	ovl_kaleido_scope (33)
		1. Fix to equip text offset relocation
		2. Fix item usability offset relocation
	
----------------------------------------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------------------------------------
Documentation [DOC]
----------------------------------------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------------------------------------

802229E0 Current Cursor Color Type
803E978C slot usability table
803E97B4 item usability table
803E37C8 ammo position

----------------------------------------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------------------------------------
Setup [SET]
----------------------------------------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------------------------------------

Items:
Deku Sticks
Deku Nuts
Bombs
Bow
Hookshot
Boomerang
Lens of Truth
Iron Boots
Escape Rope
Bottle
Bottle
Bottle
Bottle
Quest Item

Maybe:
Megaton Hammer
Hover Boots
Slingshot

----------------------------------------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------------------------------------
ASM [ASM]
----------------------------------------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------------------------------------

;_____________________________________________________________
;Free Inventory Movement
;This will make it so that you can place the cursor on empty
;inventory slots.
;_____________________________________________________________

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;Cursor Movement:
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
.org 0x803D8B88 ;LEFT
	NOP
.org 0x803D8C68 ;RIGHT
	NOP
.org 0x803D8DD0 ;FROM L
	NOP
	NOP
.org 0x803D8EA8 ;FROM R
	NOP
	NOP
.org 0x803D8FAC ;UP
	NOP
.org 0x803D9004 ;DOWN
	NOP
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;Hide Item 0xFF name (on select)
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
.org 0x803E2168
	LHU		A1, 0x023C(V0)			;
	LHU		V1, 0x002A(SP)			;Already there
	SLTI	AT, A1, 0x00FF			;
	BEQL	AT, R0, 0x803E2338
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;Hide Item 0xFF name (loop)
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
.org 0x803E1370
	SLTI	AT, T7, 0x00FF			;Set AT to 1 if you don't have item 0xFF or a blank slot selected
.org 0x803E1378
	BEQL	AT, R0, 0x803E17E8		;Branch if you have item 0xFF or a blank slot selected
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;Set Cursor to Default on 0xFF
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
.org 0x803D9058
	SLTI	T5, A0, 0x00FF			;T5 = 1 if you have selected an item
	SLL		T5, T5, 0x0002			;T5 = T5<<0x2
	NOP								;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;Make Item 0xFF unequippable (2.0)
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
.org 0x803D9140
	ADDIU	AT, R0, 0x00FF			;AT = 0xFF (Blank)
	LW		T6, 0x0048(SP)			;T6 = Item ID
	BEQ		AT, T6, 0x803D92FC		;Branch past error sound if item is 0xFF (Blank)
	ADDIU	AT, R0, 0x0009			;AT = 0x0009 (Usable by both)
	BEQ		V0, AT, _equipEnd		;Branch if usable by child and adult
	LW		T5, 0x0004(S4)			;T5 = Age
	BNE		V0, T5, 0x803D92D0		;Branch to error sound if wrong age
	_equipEnd:
	NOP								;Remove command
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;Hide text when on empty slot
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
.org 0x803E1B80
	LHU		V0, 0x023E(T0)			;V0 = Selected Item ID
	SLTI	V0, V0, 0x00FF			;V0 = 1 if Selected Item ID is less than 0xFF
	BEQ		V0, R0, 0x803E1D0C		;Branch if item ID is 0xFF or higher
	;Optimized code below
	LBU		T6, 0x1409(T2)
	LUI		T7, 0x8016
	LW		T9, 0xFA90(T7)
	SLL		T8, T6, 0x1
	ADDU	V0, T9, T8
	LW		T9, 0x0154(T0)
	LH		V0, 0x0DF6(V0)
	SH		V0, 0x0120(T9)
	LUI		A1, 0x803F				;This command need a offset relocation fix. 0x1470 must be added. 0x0000F7FC
	ADDIU	T3, A1, 0x9968


	
;_____________________________________________________________
;Slot to Item Usability
;This will make it so that the inventory uses the item
;usability table rather than slot usability table for all 
;checks.
;_____________________________________________________________

;Name Color
.org 0x803D909C
	ADDIU T5, T5, 0x97B4			;Point to item usability table instead of slot usability table.
.org 0x803D90B4
	ADDU S0, A0, T5					;Replace T4 with A0 to use item ID instead of Slot ID
;Selection Size
.org 0x803D9578
	ADDU V0, V0, T5					;Replace S0 with T5 to use item ID instead of Slot ID
.org 0x803D9584
	LBU V0, 0x97B4(V0)				;Point to item usability table instead of slot usability table.
;Icon Greyscale
.org 0x803D84AC
	
;Ammo Color
.org 0x803D849C
	NOP								;This command is now unused
.org 0x803D84A8
	ADDU	V0, V0, T1				;V0 = 0x803F0000 + Item ID
	LBU		V0, 0x97B4(V0)			;Point to item usability table instead of slot usability table.


;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;Ammo Position
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
.org 0x803E37C8

----------------------------------------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------------------------------------
Tables [TBL]
----------------------------------------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------------------------------------

;Fix to equip text offset relocation
0x803E1BAE,94AF

;Fix item usability offset relocation
0x803D909E,AC24
0x803D9586,AC24
0x803D84AE,AC24